package com.guqj.pattern.observer;

public class ObserverTest {

	public static void main(String[] args) {
		WeatherData weatherData = new WeatherData();
		StatisticsDisplay statisticsDisplay = new StatisticsDisplay(weatherData);
		ForecastDisplay forecastDisplay = new ForecastDisplay(weatherData);
		weatherData.setMeasurements(10F, 12.23F, 522.36F);
		System.out.println();
		weatherData.setMeasurements(16.63F, 15.23F, 563.36F);
	}
}
